import $ from "@/utils/requset"
// 首页数据
const getHomeApi = () => $.getAxios('homeApi.json')
const getcateApi = () => $.getAxios('categories.json')
const getCateTextApi = (path) => $.getAxios('categoriesdetail/'+path+'.json')
const getHomeFoodApi = () =>$.getAxios('allScene.json')
const getCateFoodApi = (food) =>$.getAxios('menulist/'+food+'.json')

// 登录
const postLogin = ({ tel = null, password = null, yzm = null, sms = null } = {}) => $.postAxios('login', { tel, password, yzm, sms })
export default {
    // 首页数据
    getHomeApi,
    //登录
    postLogin,
    getcateApi,
    getCateTextApi,
    getHomeFoodApi,
    getCateFoodApi  
}